#ifndef ACTIONEDITDIALOG_H
#define ACTIONEDITDIALOG_H

#include <QDialog>
#include "layout.h"
#include "relaycomputer.h"
#include "relaytimer.h"

namespace Ui {
class ActionEditDialog;
}

class ActionEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ActionEditDialog(Layout *layout, RelayTimer *timer = 0, RelayComputer *computer = 0, QWidget *parent = 0);
    ~ActionEditDialog();

public Q_SLOTS:
    void onButtonClicked();
    void onCurrentIndexChanged(int index);

public slots:
    virtual void accept();

private:
    void changeActionCombo(int type);

private:
    Ui::ActionEditDialog *ui;

    RelayTimer *mpTimer;
    RelayComputer *mpComputer;
};

#endif // ACTIONEDITDIALOG_H
